package com.neu.flashmall.product.mapper;

import com.neu.flashmall.product.entity.PmsBrand;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 12615
* @description 针对表【pms_brand(品牌)】的数据库操作Mapper
* @createDate 2022-06-30 10:54:23
* @Entity com.neu.flashmallproduct.entity.PmsBrand
*/
@Mapper
public interface PmsBrandMapper {

    int deleteByPrimaryKey(Long id);

    int insert(PmsBrand record);

    int insertSelective(PmsBrand record);

    PmsBrand selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(PmsBrand record);

    int updateByPrimaryKey(PmsBrand record);

    List<PmsBrand> selectAll();

    PmsBrand selectByName(String name);

    int setHot(@Param("id") Long id,@Param("hot") int hot);

    List<PmsBrand> selectHot();

}
